package thinking.java.initalization.and.clean.up;

/**
 * @author GaoFeng
 * @date 2020/1/2 16:29
 */
public class Cups {

    static Cup cup1;
    static Cup cup2;

    static {
        // 静态代码块只会执行一次
        cup1 = new Cup(1);
        cup2 = new Cup(2);
    }

    Cups() {
        System.out.println("Cups()");
    }
}


